package com.suda.sudaexamsystem.dto;

public class RecordItemDto {
    private int id;
    // 关联的问题
    private QuestionDto question;
    // 回答
    private String answer;
    // 是否回答正确
    private boolean isCorrect;

    public RecordItemDto() {
    }

    public RecordItemDto(int id, QuestionDto question, String answer, boolean isCorrect) {
        this.id = id;
        this.question = question;
        this.answer = answer;
        this.isCorrect = isCorrect;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public QuestionDto getQuestion() {
        return question;
    }

    public void setQuestion(QuestionDto question) {
        this.question = question;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public boolean isCorrect() {
        return isCorrect;
    }

    public void setCorrect(boolean correct) {
        isCorrect = correct;
    }
}
